package com.clk.portfoy.screens;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.border.EmptyBorder;

import com.clk.desktop.gui.components.basic.ClkButton;
import com.clk.desktop.gui.components.basic.ClkFrame;
import com.clk.portfoy.PortfoyStatics;
import com.clk.portfoy.complib.portfoy.izleme.ClkIzlemePanel;
import com.swtdesigner.SwingResourceManager;

public class ScrDegerIzleme extends ClkFrame {

	private ClkIzlemePanel clkIzlemePanel;
	private class BtnKapatActionListener implements ActionListener {
		public void actionPerformed(final ActionEvent e) {
			do_btnKapat_actionPerformed(e);
		}
	}

	private ClkButton btnKapat;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// ---------------------------------------------------------------------------------
	public ScrDegerIzleme() {
		super();
		initGUI();
		setSize(new Dimension(340, 347));
		btnKapat.setIcon(PortfoyStatics.imgClose);
	}

	// ---------------------------------------------------------------------------------
	private void initGUI() {
		setUndecorated(false);
		setIconImage(SwingResourceManager.getImage(ScrMain.class, "/com/clk/portfoy/images/CLK1.0.png"));
		setResizable(false);
		{
			btnKapat = new ClkButton();
			btnKapat.addActionListener(new BtnKapatActionListener());
			btnKapat.setBorder(new EmptyBorder(0, 0, 0, 0));
			btnKapat.setContentAreaFilled(false);
			btnKapat.setBorderPainted(false);
			btnKapat.setBounds(264, 248, 60, 63);
			getContentPane().add(btnKapat);
		}
		{
			clkIzlemePanel = new ClkIzlemePanel();
			clkIzlemePanel.setBounds(10, 10, 314, 231);
			getContentPane().add(clkIzlemePanel);
		}
	}

	// ---------------------------------------------------------------------------------
	protected void do_btnKapat_actionPerformed(final ActionEvent e) {
		this.dispose();
	}
	// ---------------------------------------------------------------------------------
}
